<template>
  <div>
<select :value='value' @change="OnOptionSelect">
    <option value=101>北京</option>
    <option value=102>上海</option>
    <option value=103>武汉</option>
    <option value=104>成都</option>
</select>
</div>
</template>

<script>
export default {
    props: {
        value: {
            type: Number
       
        }
    },
    
    methods: {
        OnOptionSelect(event) {
            const selectedValue = Number(event.target.value);
            this.$emit('input', selectedValue);
        }
    }

}
</script>

<style>

</style>